package mastermind.net;


/**
 * Common constants and message codes for MM game
 */
public interface Protocol {
	
	public static String[] pieceColours = {
		"white", "red", "green", "blue", "magenta", "yellow" 
	};
		             
	public enum OpCode {
		REGISTER,
		LOGIN,
		START_GAME,
		GUESS,
		GET_STATS,
		GET_LEADERBOARD,
		END_GAME,
		SAVE_GAME,
		LOGOUT,
		RESTORE_GAME, 
		SUCCESS,
		FAILURE, 
		UNRECOGNISED_OPERATION,
	}
	
	public static final int SERVER_DEFAULT_PORT = 10123;
	public static final int SECRET_DEFAULT_LENGTH = 4;
	public static final int NUM_GUESSES = 10;
}
